package com.gp.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gp.mapper.BaseGoodsPropertyMapper;
import com.gp.model.entity.BaseGoodsProperty;
import com.gp.service.IBaseGoodsPropertyService;

/**
 * 
 * @author 王柔
 *
 * @Description:
 * @date 2017年12月7日
 */

@Service
public class BaseGoodsPropertyServiceImpl extends
    ServiceImpl<BaseGoodsPropertyMapper, BaseGoodsProperty> implements IBaseGoodsPropertyService {

  @Autowired
  private BaseGoodsPropertyMapper goodsPropertyMapper;

  @Override
  public Map<String, List<String>> listGoodsProperties() {
    Map<String, List<String>> map = new HashMap<String, List<String>>();
    map.put("seatStyle", this.goodsPropertyMapper.listGoodsSeatStyleProperty());
    map.put("installWay", this.goodsPropertyMapper.listGoodsInstallWayProperty());
    map.put("fixedWay", this.goodsPropertyMapper.listGoodsFixedWayProperty());
    map.put("suitAge", this.goodsPropertyMapper.listGoodsSuitAgeProperty());
    return map;
  }

}
